﻿using System;
using System.Collections.Generic;
using System.Numerics;
using System.Text;

namespace VkSample413
{
    public class ColorRect
    {

        public uint VCount { get; set; }

        public float[] Data { get; set; }

        public void GenVertexData(float length, Vector3 color)
        {
            VCount = 6;
            Data = new float[]
            {
                0,0,0,color.X,color.Y,color.Z,
                length,length,0,color.X,color.Y,color.Z,
                -length,length,0,color.X,color.Y,color.Z,
                -length,-length,0,color.X,color.Y,color.Z,
                length,-length,0,color.X,color.Y,color.Z,
                length,length,0,color.X,color.Y,color.Z
            };
        }
    }
}
